<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template/LayoutPadrao.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                 xmlns="http://www.w3.org/1999/xhtml">
   
    <ui:define name="centro">
        <h:form id="frm1">
            <p:panelGrid columns="4">
                <f:facet name="header">Evento</f:facet>
                <p:outputLabel value="Evento" for="evento" style="font-size: 16px"/>
                <p:inputText value="#{novoEventoBean.evento.descricao}" id="evento" required="true"/>
                <p:outputLabel value="Data" for="data" style="font-size: 16px"/>
                <p:inputText value="#{novoEventoBean.evento.data}" id="data" required="true">
                    <f:convertDateTime pattern="dd/MM/yyyy"/>
                </p:inputText>
                <p:outputLabel value="Valor" for="valor" style="font-size: 16px"/>
                <p:inputText value="#{novoEventoBean.evento.valor}" id="valor"/>

                <f:facet name="footer">
                    <p:commandButton value="Salvar" action="#{novoEventoBean.salvar}"
                                     icon="ui-icon-check"
                                     update="frm1"/>  
                </f:facet>
                </p:panelGrid>
                <p:messages closable="true" id="msg"/>
        </h:form>
    </ui:define>

</ui:composition>
